#include "teacher.h"

Teacher::Teacher(QObject *parent) : person(parent)
{

}
Teacher::Teacher(QString nmb,QString nm,bool sx,int ae,QString le,QString cge,QString dr,QString tm,int pro,int pa)
    :person(nmb,nm,sx,ae,cge,tm,pro,pa){
    level=le;
    direction=dr;}
QString Teacher::findlevel(){
return level;
}
void Teacher::setlevel(QString le){      ///修改教师职称
level=le;
}
QString Teacher::finddirection(){        ///查询研究方向
return direction;
}
void Teacher::setdirection(QString dr){     ///修改研究方向
direction=dr;
}
void Teacher::save(ostringstream& os){             ///保存
os<<number.toStdString()<<endl<<name.toStdString()<<endl<<sex<<endl<<age<<endl<<level.toStdString()<<endl<<college.toStdString()<<endl<<direction.toStdString()<<endl<<time.toStdString()<<endl<<program<<endl<<paper<<endl;
}
